﻿using System.Threading.Tasks;
using RabbitMQ.Client;

namespace MyRabbitMQLib
{
    public interface IMyEventHandler<T> : IMyEventHandler where T : class
    {
        Task OnReceivedAsync(T data, string message);
    }

    public interface IMyEventHandler
    {
        void Begin(IConnection connection);
    }
}